home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / ASRegistry.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  10.5 KB  |  264 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ASRegistry.a
  3. ;
  4. ;    Contains:    AppleScript Registry constants.
  5. ;
  6. ;    Version:    Technology:    AppleScript 1.1
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1991-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ASREGISTRY__') = 'UNDEFINED' THEN
  19. __ASREGISTRY__ SET 1
  20.  
  21.     IF &TYPE('__AEREGISTRY__') = 'UNDEFINED' THEN
  22.     include 'AERegistry.a'
  23.     ENDIF
  24.     IF &TYPE('__AEOBJECTS__') = 'UNDEFINED' THEN
  25.     include 'AEObjects.a'
  26.     ENDIF
  27.  
  28.  
  29.  
  30. keyAETarget                        EQU        'targ'                ;  0x74617267  
  31. keySubjectAttr                    EQU        'subj'                ;  0x7375626a  
  32.                                                             ; Magic 'returning' parameter: 
  33. keyASReturning                    EQU        'Krtn'                ;  0x4b72746e  
  34.                                                             ; AppleScript Specific Codes: 
  35. kASAppleScriptSuite                EQU        'ascr'                ;  0x61736372  
  36. kASTypeNamesSuite                EQU        'tpnm'                ;  0x74706e6d  
  37.                                                             ; dynamic terminologies 
  38. typeAETE                        EQU        'aete'                ;  0x61657465  
  39. typeAEUT                        EQU        'aeut'                ;  0x61657574  
  40. kGetAETE                        EQU        'gdte'                ;  0x67647465  
  41. kGetAEUT                        EQU        'gdut'                ;  0x67647574  
  42. kUpdateAEUT                        EQU        'udut'                ;  0x75647574  
  43. kUpdateAETE                        EQU        'udte'                ;  0x75647465  
  44. kCleanUpAEUT                    EQU        'cdut'                ;  0x63647574  
  45. kASComment                        EQU        'cmnt'                ;  0x636d6e74  
  46. kASLaunchEvent                    EQU        'noop'                ;  0x6e6f6f70  
  47. keyScszResource                    EQU        'scsz'                ;  0x7363737A  
  48. typeScszResource                EQU        'scsz'                ;  0x7363737A  
  49.                                                             ; subroutine calls 
  50. kASSubroutineEvent                EQU        'psbr'                ;  0x70736272  
  51. keyASSubroutineName                EQU        'snam'                ;  0x736e616d  
  52. ;  Operator Events: 
  53.  
  54.                                                             ; Binary: 
  55. kASAdd                            EQU        '+   '                ;  0x2b202020  
  56. kASSubtract                        EQU        '-   '                ;  0x2d202020  
  57. kASMultiply                        EQU        '*   '                ;  0x2a202020  
  58. kASDivide                        EQU        '/   '                ;  0x2f202020  
  59. kASQuotient                        EQU        'div '                ;  0x64697620  
  60. kASRemainder                    EQU        'mod '                ;  0x6d6f6420  
  61. kASPower                        EQU        '^   '                ;  0x5e202020  
  62. kASEqual                        EQU        '=   '
  63. kASNotEqual                        EQU        '≠   '                ;  0xad202020  
  64. kASGreaterThan                    EQU        '>   '
  65. kASGreaterThanOrEqual            EQU        '>=  '
  66. kASLessThan                        EQU        '<   '
  67. kASLessThanOrEqual                EQU        '<=  '
  68. kASComesBefore                    EQU        'cbfr'                ;  0x63626672  
  69. kASComesAfter                    EQU        'cafr'                ;  0x63616672  
  70. kASConcatenate                    EQU        'ccat'                ;  0x63636174  
  71. kASStartsWith                    EQU        'bgwt'
  72. kASEndsWith                        EQU        'ends'
  73. kASContains                        EQU        'cont'
  74.  
  75. kASAnd                            EQU        'AND '
  76. kASOr                            EQU        'OR  '                ; Unary: 
  77. kASNot                            EQU        'NOT '
  78. kASNegate                        EQU        'neg '                ;  0x6e656720  
  79. keyASArg                        EQU        'arg '                ;  0x61726720  
  80.  
  81.                                                             ; event code for the 'error' statement 
  82. kASErrorEventCode                EQU        'err '                ;  0x65727220  
  83. kOSAErrorArgs                    EQU        'erra'                ;  0x65727261  
  84.                                                             ; Properties: 
  85. pLength                            EQU        'leng'                ;  0x6c656e67  
  86. pReverse                        EQU        'rvse'                ;  0x72767365  
  87. pRest                            EQU        'rest'                ;  0x72657374  
  88. pInherits                        EQU        'c@#^'                ;  0x6340235e  
  89.                                                             ; User-Defined Record Fields: 
  90. keyASUserRecordFields            EQU        'usrf'                ;  0x75737266  
  91. typeUserRecordFields            EQU        'list'
  92. ;  Prepositions: 
  93.  
  94. keyASPrepositionAt                EQU        'at  '                ;  0x61742020  
  95. keyASPrepositionIn                EQU        'in  '                ;  0x696e2020  
  96. keyASPrepositionFrom            EQU        'from'                ;  0x66726f6d  
  97. keyASPrepositionFor                EQU        'for '                ;  0x666f7220  
  98. keyASPrepositionTo                EQU        'to  '                ;  0x746f2020  
  99. keyASPrepositionThru            EQU        'thru'                ;  0x74687275  
  100. keyASPrepositionThrough            EQU        'thgh'                ;  0x74686768  
  101. keyASPrepositionBy                EQU        'by  '                ;  0x62792020  
  102. keyASPrepositionOn                EQU        'on  '                ;  0x6f6e2020  
  103. keyASPrepositionInto            EQU        'into'                ;  0x696e746f  
  104. keyASPrepositionOnto            EQU        'onto'                ;  0x6f6e746f  
  105. keyASPrepositionBetween            EQU        'btwn'                ;  0x6274776e  
  106. keyASPrepositionAgainst            EQU        'agst'                ;  0x61677374  
  107. keyASPrepositionOutOf            EQU        'outo'                ;  0x6f75746f  
  108. keyASPrepositionInsteadOf        EQU        'isto'                ;  0x6973746f  
  109. keyASPrepositionAsideFrom        EQU        'asdf'                ;  0x61736466  
  110. keyASPrepositionAround            EQU        'arnd'                ;  0x61726e64  
  111. keyASPrepositionBeside            EQU        'bsid'                ;  0x62736964  
  112. keyASPrepositionBeneath            EQU        'bnth'                ;  0x626e7468  
  113. keyASPrepositionUnder            EQU        'undr'                ;  0x756e6472  
  114.  
  115. keyASPrepositionOver            EQU        'over'                ;  0x6f766572  
  116. keyASPrepositionAbove            EQU        'abve'                ;  0x61627665  
  117. keyASPrepositionBelow            EQU        'belw'                ;  0x62656c77  
  118. keyASPrepositionApartFrom        EQU        'aprt'                ;  0x61707274  
  119. keyASPrepositionGiven            EQU        'givn'                ;  0x6769766e  
  120. keyASPrepositionWith            EQU        'with'                ;  0x77697468  
  121. keyASPrepositionWithout            EQU        'wout'                ;  0x776f7574  
  122. keyASPrepositionAbout            EQU        'abou'                ;  0x61626f75  
  123. keyASPrepositionSince            EQU        'snce'                ;  0x736e6365  
  124. keyASPrepositionUntil            EQU        'till'                ;  0x74696c6c  
  125.  
  126.                                                             ; Terminology & Dialect things: 
  127. kDialectBundleResType            EQU        'Dbdl'                ;  0x4462646c  
  128.                                                             ; AppleScript Classes and Enums: 
  129. cConstant                        EQU        'enum'
  130. cClassIdentifier                EQU        'pcls'
  131. cObjectBeingExamined            EQU        'exmn'
  132. cList                            EQU        'list'
  133. cSmallReal                        EQU        'sing'
  134. cReal                            EQU        'doub'
  135. cRecord                            EQU        'reco'
  136. cReference                        EQU        'obj '
  137. cUndefined                        EQU        'undf'                ;  0x756e6466  
  138. cSymbol                            EQU        'symb'                ;  0x73796d62  
  139. cLinkedList                        EQU        'llst'                ;  0x6c6c7374  
  140. cVector                            EQU        'vect'                ;  0x76656374  
  141. cEventIdentifier                EQU        'evnt'                ;  0x65766e74  
  142. cKeyIdentifier                    EQU        'kyid'                ;  0x6b796964  
  143. cUserIdentifier                    EQU        'uid '                ;  0x75696420  
  144. cPreposition                    EQU        'prep'                ;  0x70726570  
  145. cKeyForm                        EQU        'kfrm'
  146. cScript                            EQU        'scpt'                ;  0x73637074  
  147. cHandler                        EQU        'hand'                ;  0x68616e64  
  148. cProcedure                        EQU        'proc'                ;  0x70726f63  
  149.  
  150. cClosure                        EQU        'clsr'                ;  0x636c7372  
  151. cRawData                        EQU        'rdat'                ;  0x72646174  
  152. cString                            EQU        'TEXT'
  153. cStringClass                    EQU        'TEXT'
  154. cNumber                            EQU        'nmbr'                ;  0x6e6d6272  
  155. cListOrRecord                    EQU        'lr  '                ;  0x6c722020  
  156. cListOrString                    EQU        'ls  '                ;  0x6c732020  
  157. cListRecordOrString                EQU        'lrs '                ;  0x6c727320  
  158. cNumberOrDateTime                EQU        'nd  '                ;  0x6e642020  
  159. cNumberDateTimeOrString            EQU        'nds '                ;  0x6e647320  
  160. cSeconds                        EQU        'scnd'                ;  0x73636e64  
  161. enumBooleanValues                EQU        'boov'                ;  0x626f6f76  
  162. kAETrue                            EQU        'true'
  163. kAEFalse                        EQU        'fals'
  164. enumMiscValues                    EQU        'misc'                ;  0x6d697363  
  165. kASCurrentApplication            EQU        'cura'                ;  0x63757261  
  166.                                                             ; User-defined property ospecs: 
  167. formUserPropertyID                EQU        'usrp'                ;  0x75737270  
  168.  
  169.                                                             ; Global properties: 
  170. pASIt                            EQU        'it  '                ;  0x69742020  
  171. pASMe                            EQU        'me  '                ;  0x6d652020  
  172. pASResult                        EQU        'rslt'                ;  0x72736c74  
  173. pASSpace                        EQU        'spac'                ;  0x73706163  
  174. pASReturn                        EQU        'ret '                ;  0x72657420  
  175. pASTab                            EQU        'tab '                ;  0x74616220  
  176. pASPi                            EQU        'pi  '                ;  0x70692020  
  177. pASParent                        EQU        'pare'                ;  0x70617265  
  178. kASInitializeEventCode            EQU        'init'                ;  0x696e6974  
  179. pASPrintLength                    EQU        'prln'                ;  0x70726c6e  
  180. pASPrintDepth                    EQU        'prdp'                ;  0x70726470  
  181. pASTopLevelScript                EQU        'ascr'                ;  0x61736372  
  182.  
  183.                                                             ; Considerations 
  184. kAECase                            EQU        'case'                ;  0x63617365  
  185. kAEDiacritic                    EQU        'diac'                ;  0x64696163  
  186. kAEWhiteSpace                    EQU        'whit'                ;  0x77686974  
  187. kAEHyphens                        EQU        'hyph'                ;  0x68797068  
  188. kAEExpansion                    EQU        'expa'                ;  0x65787061  
  189. kAEPunctuation                    EQU        'punc'                ;  0x70756e63  
  190. kAEZenkakuHankaku                EQU        'zkhk'                ;  0x7a6b686b  
  191. kAESmallKana                    EQU        'skna'                ;  0x736b6e61  
  192. kAEKataHiragana                    EQU        'hika'                ;  0x68696b61  
  193.                                                             ; AppleScript considerations: 
  194. kASConsiderReplies                EQU        'rmte'                ;  0x726d7465  
  195. enumConsiderations                EQU        'cons'                ;  0x636f6e73  
  196.  
  197. cCoercion                        EQU        'coec'                ;  0x636f6563  
  198. cCoerceUpperCase                EQU        'txup'                ;  0x74787570  
  199. cCoerceLowerCase                EQU        'txlo'                ;  0x74786c6f  
  200. cCoerceRemoveDiacriticals        EQU        'txdc'                ;  0x74786463  
  201. cCoerceRemovePunctuation        EQU        'txpc'                ;  0x74787063  
  202. cCoerceRemoveHyphens            EQU        'txhy'                ;  0x74786879  
  203. cCoerceOneByteToTwoByte            EQU        'txex'                ;  0x74786578  
  204. cCoerceRemoveWhiteSpace            EQU        'txws'                ;  0x74787773  
  205. cCoerceSmallKana                EQU        'txsk'                ;  0x7478736b  
  206. cCoerceZenkakuhankaku            EQU        'txze'                ;  0x74787a65  
  207. cCoerceKataHiragana                EQU        'txkh'                ;  0x74786b68  
  208.                                                             ; Lorax things: 
  209. cZone                            EQU        'zone'                ;  0x7a6f6e65  
  210. cMachine                        EQU        'mach'                ;  0x6d616368  
  211. cAddress                        EQU        'addr'                ;  0x61646472  
  212. cRunningAddress                    EQU        'radd'                ;  0x72616464  
  213. cStorage                        EQU        'stor'                ;  0x73746f72  
  214.  
  215.                                                             ; DateTime things: 
  216. pASWeekday                        EQU        'wkdy'                ;  0x776b6479  
  217. pASMonth                        EQU        'mnth'                ;  0x6d6e7468  
  218. pASDay                            EQU        'day '                ;  0x64617920  
  219. pASYear                            EQU        'year'                ;  0x79656172  
  220. pASTime                            EQU        'time'                ;  0x74696d65  
  221. pASDateString                    EQU        'dstr'                ;  0x64737472  
  222. pASTimeString                    EQU        'tstr'                ;  0x74737472  
  223.                                                             ; Months 
  224. cMonth                            EQU        'mnth'
  225. cJanuary                        EQU        'jan '                ;  0x6a616e20  
  226. cFebruary                        EQU        'feb '                ;  0x66656220  
  227. cMarch                            EQU        'mar '                ;  0x6d617220  
  228. cApril                            EQU        'apr '                ;  0x61707220  
  229. cMay                            EQU        'may '                ;  0x6d617920  
  230. cJune                            EQU        'jun '                ;  0x6a756e20  
  231. cJuly                            EQU        'jul '                ;  0x6a756c20  
  232. cAugust                            EQU        'aug '                ;  0x61756720  
  233. cSeptember                        EQU        'sep '                ;  0x73657020  
  234. cOctober                        EQU        'oct '                ;  0x6f637420  
  235. cNovember                        EQU        'nov '                ;  0x6e6f7620  
  236. cDecember                        EQU        'dec '                ;  0x64656320  
  237.  
  238.                                                             ; Weekdays 
  239. cWeekday                        EQU        'wkdy'
  240. cSunday                            EQU        'sun '                ;  0x73756e20  
  241. cMonday                            EQU        'mon '                ;  0x6d6f6e20  
  242. cTuesday                        EQU        'tue '                ;  0x74756520  
  243. cWednesday                        EQU        'wed '                ;  0x77656420  
  244. cThursday                        EQU        'thu '                ;  0x74687520  
  245. cFriday                            EQU        'fri '                ;  0x66726920  
  246. cSaturday                        EQU        'sat '                ;  0x73617420  
  247.                                                             ; AS 1.1 Globals: 
  248. pASQuote                        EQU        'quot'                ;  0x71756f74  
  249. pASSeconds                        EQU        'secs'                ;  0x73656373  
  250. pASMinutes                        EQU        'min '                ;  0x6d696e20  
  251. pASHours                        EQU        'hour'                ;  0x686f7572  
  252. pASDays                            EQU        'days'                ;  0x64617973  
  253. pASWeeks                        EQU        'week'                ;  0x7765656b  
  254.                                                             ; Writing Code things: 
  255. cWritingCodeInfo                EQU        'citl'                ;  0x6369746c  
  256. pScriptCode                        EQU        'pscd'                ;  0x70736364  
  257. pLangCode                        EQU        'plcd'                ;  0x706c6364  
  258.                                                             ; Magic Tell and End Tell events for logging: 
  259. kASMagicTellEvent                EQU        'tell'                ;  0x74656c6c  
  260. kASMagicEndTellEvent            EQU        'tend'                ;  0x74656e64  
  261.  
  262.     ENDIF ; __ASREGISTRY__ 
  263.  
  264.